package com.mindcraft.shop.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;

@Data
@ApiModel(description = "SkuDetail")
@TableName("sku_detail")
public class SkuDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户id")
	@TableField("user_id")
	private String userId;

	@ApiModelProperty(value = "sku的id")
	@TableField("sku_id")
	private Long skuId;

	@ApiModelProperty(value = "详情内容")
	@TableField("detail_html")
	private String detailHtml;

	@ApiModelProperty(value = "是否包邮")
	@TableField("is_freepost")
	private Integer isFreepost;

	@ApiModelProperty(value = "是否全新")
	@TableField("is_new")
	private Integer isNew;

	@ApiModelProperty(value = "以前的价格")
	@TableField("before_price")
	private BigDecimal beforePrice;

	@ApiModelProperty(value = "发货地址")
	@TableField("post_address")
	private String postAddress;
}